<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CTimeFactory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="class_c_time_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CTimeFactory类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>时间类工厂  
 <a href="class_c_time_factory.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_time_8h_source.html">Time.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">创建时间类</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>创建一个时间类型的实例</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>时间类型，参考CTimeBase::TimeType 枚举 </td></tr>
    <tr><td class="paramname">t</td><td>用户传入的时间值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回一个时间智能指针 </dd></dl>
</div></td></tr>
<tr class="memitem:a62fbb6a4e082c93fc55f3e517f6be85b"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_time_base.html">CTimeBase</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_factory.html#a62fbb6a4e082c93fc55f3e517f6be85b">CreateInstance</a> (<a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">CTimeBase::TimeType</a> type)</td></tr>
<tr class="separator:a62fbb6a4e082c93fc55f3e517f6be85b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a157a9b2a51c5506f7a0775bfaf7be1be"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_time_base.html">CTimeBase</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_time_factory.html#a157a9b2a51c5506f7a0775bfaf7be1be">CreateInstance</a> (<a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">CTimeBase::TimeType</a> type, <a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a> t)</td></tr>
<tr class="separator:a157a9b2a51c5506f7a0775bfaf7be1be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>时间类工厂 </p>

<p class="definition">在文件 <a class="el" href="_time_8h_source.html">Time.h</a> 第 <a class="el" href="_time_8h_source.html#l00189">189</a> 行定义.</p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a62fbb6a4e082c93fc55f3e517f6be85b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62fbb6a4e082c93fc55f3e517f6be85b">&#9670;&nbsp;</a></span>CreateInstance() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_time_base.html">CTimeBase</a> &gt; CTimeFactory::CreateInstance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">CTimeBase::TimeType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00288">288</a> 行定义.</p>

</div>
</div>
<a id="a157a9b2a51c5506f7a0775bfaf7be1be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a157a9b2a51c5506f7a0775bfaf7be1be">&#9670;&nbsp;</a></span>CreateInstance() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_time_base.html">CTimeBase</a> &gt; CTimeFactory::CreateInstance </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_time_base.html#a045344374dbd744e3bc839b31d552b73">CTimeBase::TimeType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_time_8h.html#ace04e42edcaa8586d6e07a7a86fbc522">TIME_T</a>&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_time_8cpp_source.html">Time.cpp</a> 第 <a class="el" href="_time_8cpp_source.html#l00298">298</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/time/<a class="el" href="_time_8h_source.html">Time.h</a></li>
<li>H:/project/LibTools/src/time/<a class="el" href="_time_8cpp_source.html">Time.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
